package com.example.demo.v1;

/**
 * 传统造车
 */
public class Car {
    private FrameWork frameWork;

    public Car(int size) {
        frameWork=new FrameWork(size);
        System.out.println("车子已经做好了");
    }
    public void run(){
        System.out.println("车子跑起来了");
    }
    public static void main(String[] args) {
        Car car1=new Car(21);
        car1.run();
        System.out.println("===========");
        Car car2=new Car(22);
        car2.run();
    }
}
